home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AmigActive 2
/
AACD 2.iso
/
AACD
/
WebSites
/
MailingLists
/
AMOSLIST.0899
/
000031_nobody_Sun Aug 8 13:36:37 1999.msg
< prev
next >
Wrap
Internet Message Format
|
1999-09-01
|
4KB
Received: from onelist.com (pop.onelist.com [209.207.164.225])
by osf1.gmu.edu (8.8.8/8.8.8) with SMTP id NAA20514
for <mcox4@osf1.gmu.edu>; Sun, 8 Aug 1999 13:36:33 -0400 (EDT)
Received: (qmail 14513 invoked by alias); 8 Aug 1999 17:37:01 -0000
Received: (qmail 14439 invoked from network); 8 Aug 1999 17:36:58 -0000
Received: from unknown (HELO web901.mail.yahoo.com) (128.11.23.76) by pop.onelist.com with SMTP; 8 Aug 1999 17:36:58 -0000
Message-ID: <19990808173339.14895.rocketmail@web901.mail.yahoo.com>
Received: from [62.188.132.247] by web901.mail.yahoo.com; Sun, 08 Aug 1999 18:33:39 BST
Date: Sun, 8 Aug 1999 18:33:39 +0100 (BST)
From: =?iso-8859-1?q?Claude=20Heiland-Allen?= <cheilandallen@yahoo.co.uk>
To: amos-list@onelist.com
Mailing-List: list amos-list@onelist.com; contact amos-list-owner@onelist.com
Delivered-To: mailing list amos-list@onelist.com
Precedence: bulk
List-Unsubscribe: <mailto:amos-list-unsubscribe@ONElist.com>
Reply-to: amos-list@onelist.com
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Subject: [amos-list] Re: parallel port samplers
Status: O
X-Status:
From: =?iso-8859-1?q?Claude=20Heiland-Allen?= <cheilandallen@yahoo.co.uk>
Hi Andrew Crowe
> you know asm? excellent, thats what language they
gave
> it in, I just modified it to amos code. Here's what
the
> manual says:
I used your info to get some sampling done, the
quality
seems quite poor, with a strange metallic edge to it.
I'm
investigating using the system timer interrupts to
record
at a sensible rate, rather than having delay code.
The
hardware reference manual doesn't mention samplers at
all.
There may be some small differences between
Technosound
and Megalosound (which I have) samplers too. Maybe
I'm
trying to sample too quickly? (Before I put in the
delay
all I got was noise).
Usage of program: sample >sample.raw
I use octamed to convert the unsigned data from the
sampler
into signed Amiga samples.
/* sample.e */
PROC main()
DEF buffer[8000] : ARRAY OF CHAR
sample(buffer, 8000)
Write(stdout, buffer, 8000)
ENDPROC
PROC sample(buffer, length)
Disable() -> turn off interrupts (is this
needed?)
-> initialise
MOVE.L length,D0
SUBQ.W #1,D0 -> dbcc tests =-1
MOVE.L buffer,A0
MOVE.B #0,$BFE301 -> enable input
MOVE.B #6,$BFD200 -> enable channels
MOVE.B #2,$BFD000 -> select left channel (4 = right)
MOVE.L #$BFE101,A1
-> 7 MHz processor, 22050 kHz sample rate => 324
clock cycles
-> all the NOPs below waste 256 cycles
loop:
MOVE.B (A1),(A0)+
NOP;NOP;NOP;NOP; NOP;NOP;NOP;NOP; NOP;NOP;NOP;NOP;
NOP;NOP;NOP;NOP;
NOP;NOP;NOP;NOP; NOP;NOP;NOP;NOP; NOP;NOP;NOP;NOP;
NOP;NOP;NOP;NOP;
NOP;NOP;NOP;NOP; NOP;NOP;NOP;NOP; NOP;NOP;NOP;NOP;
NOP;NOP;NOP;NOP;
NOP;NOP;NOP;NOP; NOP;NOP;NOP;NOP; NOP;NOP;NOP;NOP;
NOP;NOP;NOP;NOP;
DBRA.B D0,loop
Enable() -> turn on interrupts
ENDPROC
/* END: sample.e */
Thanks
Claude
_____________________________________________________________
DO YOU YAHOO!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
--------------------------- ONElist Sponsor ----------------------------
ONElist members: don't miss out on the latest news at ONElist
Join our community member news update at
------------------------------------------------------------------------
Official AMOS WWW: http://members.xoom.com/AmosFactory/front.html